<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加供应商</title>
	<script th:src="@{/js/jquery-1.9.1.min.js}"></script>
	<link rel="stylesheet" href="//unpkg.com/layui@2.6.8/dist/css/layui.css">
	<script src="//unpkg.com/layui@2.6.8/dist/layui.js"></script>
</head>

<body >

<form class="layui-form" th:action="@{/user/billadd}" lay-filter="example" method="post">
	<div class="layui-form-item">
		<label class="layui-form-label">订单编码：</label>
		<div class="layui-input-block">
			<input type="text" name="billcode" id="usercode" lay-verify="required" autocomplete="off" placeholder="请输入编码" class="layui-input">
		</div>
	</div>

	<div class="layui-form-item">
		<label class="layui-form-label">商品名称：</label>
		<div class="layui-input-block">
			<input type="text" name="productname" id="username" lay-verify="required" autocomplete="off" placeholder="请输入商品名称" class="layui-input">
		</div>
	</div>

	<div class="layui-form-item">
		<label class="layui-form-label">商品单位：</label>
		<div class="layui-input-block">
			<input type="text" name="productunit" id="userpassword" lay-verify="required" autocomplete="off" placeholder="请输入商品单位" class="layui-input">
		</div>
	</div>

	<div class="layui-form-item">
		<label class="layui-form-label">商品数量：</label>
		<div class="layui-input-block">
			<input type="text" name="productcount" id="productCount" lay-verify="required" autocomplete="off" placeholder="请输入商品数量" class="layui-input">
		</div>
	</div>


	<div class="layui-form-item">
		<label class="layui-form-label">总金额：</label>
		<div class="layui-input-block">
			<input type="text" name="totalprice" id="totalPrice" lay-verify="required" autocomplete="off" placeholder="请输入总金额" class="layui-input">
		</div>
	</div>


	<div class="layui-form-item">
		<label class="layui-form-label">供应商：</label>
		<div class="layui-input-block">
			<select name="providerid" lay-filter="aihao" lay-verify="required">
				<option value="1" th:text="北京三木堂商贸有限公司"></option>
				<option th:each="billpro,billstat:${providerLists}" th:value="${billpro.id}" th:text="${billpro.proName}"></option>

			</select>
		</div>
	</div>

	<div class="layui-form-item" >
		<label class="layui-form-label">是否付款：</label>
		<div class="layui-input-block">
			<input type="radio" name="ispayment" value="1" title="未付款" checked="">
			<input type="radio" name="ispayment" value="2" title="已付款">
		</div>
	</div>



	<div class="layui-form-item">
		<label class="layui-form-label"></label>
		<div class="layui-input-block">
			<input type="hidden" name="createdby" id="by"  th:value="${session.userinfo.userrole}" lay-verify="required" autocomplete="off" placeholder="请输入商品供应商" class="layui-input">
		</div>
	</div>



	<div class="layui-form-item">
		<div class="layui-input-block">

			<button type="submit" class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
		</div>
	</div>
</form>

<div class="layui-form-item">
	<div class="layui-input-block">
		<form th:action="@{/user/providerlist}">
			<button type="submit" class="layui-btn" lay-submit="" lay-filter="demo1">返回</button>
		</form>
	</div>
</div>

</body>
</html>